package mapper;

import entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 郝雷蒙
 * @Description
 * @date 2020/12/18 16:48
 */
@Mapper
public interface RelationMapper {
    public List<Category> selectCategoriesByMovieId(Integer id);
    public Integer insertMovieCategories(@Param("id") Integer id,
                                         @Param("categoryId") List<Integer> categoryId);
    public Integer deleteCategoriesByMovieList(List<Integer> movieList);
}
